@extends('admin.layout.index')
@section('title','商品类名修改')
@section('content')
<div class="row">
	<div class="col-lg-12">
	    <h1 class="page-header">修改类名</h1>
	</div>
</div>

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                @if (count($errors) > 0)
                    <div class="alert alert-danger">
                        <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif
            </div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-6">
                        <form role="form" action="{{url('/admin/cate/doedit')}}" method="post" enctype="multipart/form-data">

                            <div class="form-group">
                                <label>商品类名</label>
                                <input class="form-control" value="{{$cates->cname}}" type="text" name="cname">
                            </div>

                            <input type="hidden" name="id" value="{{$cates->id}}">
                            {{ csrf_field() }}
                            <button class="btn btn-success" type="submit">修改</button>
                            <button class="btn btn-danger" type="reset">重置</button>
                        </form>
                    </div>
           
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>




@endsection